package com.sale.salesystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 仪表板图表实体类
 */
@Data
@TableName("dashboard_chart")
public class DashboardChart {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long dashboardId;  // 关联的仪表板ID
    
    private String title;      // 图表标题
    
    private String type;       // 图表类型：line,area,bar,pie,funnel,ring
    
    private String dataSource; // 数据源配置(JSON格式)
    
    private String options;    // 图表配置项(JSON格式)
    
    private Integer displayOrder; // 显示顺序
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
} 